﻿$(function () {

    var getContent = function () {
        var $a = $(this);

        var options = {
            url: $a.attr("data-tab-get"),
            type: "get"
        };

        $.ajax(options).done(function (data) {
            var target = $a.attr("data-tab-div");
            $(target).html(data);
        });

        return false;
    }

    //$(".main-content").on("click", "#tabs a", getContent);
    $("#tabs a").click(getContent);
    $("a[href='#tabs-1']").trigger("click");

});